package Test.beanTest;

import bean.park.map.ParkMapBean;
import bean.park.map.ParkMapDataItem;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.assertEquals;

public class ParkMapBeanTest {

    @Test
    public void setCode() {
        ParkMapBean p = new ParkMapBean();
        p.setCode(1);
        assertEquals(1,p.getCode());
    }

    @Test
    public void setMessage() {
        ParkMapBean p = new ParkMapBean();
        p.setMessage("111");
        assertEquals("111",p.getMessage());
    }

    @Test
    public void setTotal_results() {
        ParkMapBean p = new ParkMapBean();
        p.setTotal_results(1);
        assertEquals(1,p.getTotal_results());
    }

    @Test
    public void setBeanList() {
        ParkMapBean p = new ParkMapBean();
        List<ParkMapDataItem>t = new ArrayList<>();
        p.setBeanList(t);
        assertEquals(p.getBeanList(),p.getBeanList());
    }

    @Test
    public void queryParkMap() {
        ParkMapBean p = new ParkMapBean();
        p.queryParkMap(0.0,0.0,1,1);
    }
}